package com.ruoyi.buss.report.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.report.mapper.ReportDedkzbLsbMapper;
import com.ruoyi.buss.report.domain.ReportDedkzbLsb;
import com.ruoyi.buss.report.service.IReportDedkzbLsbService;

/**
 * 大额贷款占比Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class ReportDedkzbLsbServiceImpl implements IReportDedkzbLsbService 
{
    @Autowired
    private ReportDedkzbLsbMapper reportDedkzbLsbMapper;

    /**
     * 查询大额贷款占比
     * 
     * @param sjrq 大额贷款占比ID
     * @return 大额贷款占比
     */
    @Override
    public ReportDedkzbLsb selectReportDedkzbLsbById(String sjrq)
    {
        return reportDedkzbLsbMapper.selectReportDedkzbLsbById(sjrq);
    }

    /**
     * 查询大额贷款占比列表
     * 
     * @param reportDedkzbLsb 大额贷款占比
     * @return 大额贷款占比
     */
    @Override
    public List<ReportDedkzbLsb> selectReportDedkzbLsbList(ReportDedkzbLsb reportDedkzbLsb)
    {
        return reportDedkzbLsbMapper.selectReportDedkzbLsbList(reportDedkzbLsb);
    }

    /**
     * 新增大额贷款占比
     * 
     * @param reportDedkzbLsb 大额贷款占比
     * @return 结果
     */
    @Override
    public int insertReportDedkzbLsb(ReportDedkzbLsb reportDedkzbLsb)
    {
        reportDedkzbLsb.setCreateTime(DateUtils.getNowDate());
        return reportDedkzbLsbMapper.insertReportDedkzbLsb(reportDedkzbLsb);
    }

    /**
     * 修改大额贷款占比
     * 
     * @param reportDedkzbLsb 大额贷款占比
     * @return 结果
     */
    @Override
    public int updateReportDedkzbLsb(ReportDedkzbLsb reportDedkzbLsb)
    {
        return reportDedkzbLsbMapper.updateReportDedkzbLsb(reportDedkzbLsb);
    }

    /**
     * 批量删除大额贷款占比
     * 
     * @param sjrqs 需要删除的大额贷款占比ID
     * @return 结果
     */
    @Override
    public int deleteReportDedkzbLsbByIds(String[] sjrqs)
    {
        return reportDedkzbLsbMapper.deleteReportDedkzbLsbByIds(sjrqs);
    }

    /**
     * 删除大额贷款占比信息
     * 
     * @param sjrq 大额贷款占比ID
     * @return 结果
     */
    @Override
    public int deleteReportDedkzbLsbById(String sjrq)
    {
        return reportDedkzbLsbMapper.deleteReportDedkzbLsbById(sjrq);
    }
}
